package com.blyat.xsoft.auth.restful.mapper;

import com.blyat.xsoft.auth.restful.entity.Authority;
import com.blyat.xsoft.kernel.restful.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author syh
 * @date 2019/10/21
 **/
public interface AuthorityMapper extends BaseMapper<Authority> {

    List<Authority> getAll();

    List<Authority> getByUserId(String userId);

    List<Authority> getByClientId(String clientId);

    List<Authority> getByParams(Map<String, Object> params);

    List<Authority> getAuthorityByPid(String pid);

    List<Authority> getAuthByRole(@Param("roleId") String roleId);
}
